From: Jyrki Gadinger Date: Thu, 17 Apr 2025 16:05:28 +0000 (+0200) Subject: fix(gui): always hide the error label if we are allowed to rename X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1^2~13^2~1^2~35^2~2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a42de3e932ed3421148cca7297968b51971ca772;p=nextcloud-desktop.git fix(gui): always hide the error label if we are allowed to rename Signed-off-by: Jyrki Gadinger --- diff --git a/src/gui/invalidfilenamedialog.cpp b/src/gui/invalidfilenamedialog.cpp index ed51d9518..c2bd029e5 100644 --- a/src/gui/invalidfilenamedialog.cpp +++ b/src/gui/invalidfilenamedialog.cpp @@ -140,7 +140,6 @@ InvalidFilenameDialog::InvalidFilenameDialog(AccountPtr account, if (_fileLocation == FileLocation::NewLocalFile) { allowRenaming(); - _ui->errorLabel->setText({}); } else { checkIfAllowedToRename(); } @@ -223,6 +222,7 @@ void InvalidFilenameDialog::allowRenaming() _ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(true); _ui->filenameLineEdit->setEnabled(true); _ui->filenameLineEdit->selectAll(); + _ui->errorLabel->setText({}); const auto filePathFileInfo = QFileInfo(_filePath); const auto fileName = filePathFileInfo.fileName();